package routers

import "github.com/kataras/iris"

func Router(app *iris.Application) {
	users := app.Party("/")
	{
		users.Post("/initVue", initVue)                       //验证授权
		users.Post("/upload", uploadImage)                    //文件上传逻辑
		users.Post("/delete", deletImage)                     //文件删除逻辑
		users.Post("/mongoOne", findOne)                      //查找一个
		users.Post("/mongoFind", CollectionFindDocuments)     //按条件查找
		users.Post("/mongoInsert", CollectionInsertDocuments) //插入文档
		users.Post("/insSelect", insSelectId)                 //灵感选择
		users.Post("/login", userLogin)                       //管理员登录
		users.Post("/passer", passer)                         //游客
		users.Post("/deleteBlog", deleteBlog)                 //删除博客
		users.Post("/comment", irisComment)                   //评论数据
		users.Post("/commentGo", commentGo)                   //评论系统
		users.Post("replyGo", replyGo)                        //reply 评论
	}
}
